package com.ruoyi.system.domain;

import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 1分钟k线表 wdy_kline
 * 
 * @author ruoyi
 * @date 2020-01-21
 */
public class WdyKline extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	public static final int TYPE_MINUTE = 0;
	public static final int TYPE_DAY = 1;
	/** id */
		private Long id;
	/** 开盘价 */
		private BigDecimal open;
	/** 收盘价 */
		private BigDecimal close;
	/** 最低价 */
		private BigDecimal low;
	/** 最高价 */
		private BigDecimal high;
	/** 成交量 */
		private BigDecimal volumn;
	/** k线类型（0分，1日) */
		private Integer lineType;
	/** 统计时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date statsTime;
	/** 删除标志（0代表存在 1代表删除） */
		private Integer delFlag;
	/** 创建者 */
		private String createBy;
	/** 创建时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date createTime;
	/** 更新者 */
		private String updateBy;
	/** 更新时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date updateTime;
	/** 备注信息 */
		private String remark;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setOpen(BigDecimal open) 
	{
		this.open = open;
	}

	public BigDecimal getOpen() 
	{
		return open;
	}
	public void setClose(BigDecimal close) 
	{
		this.close = close;
	}

	public BigDecimal getClose() 
	{
		return close;
	}
	public void setLow(BigDecimal low) 
	{
		this.low = low;
	}

	public BigDecimal getLow() 
	{
		return low;
	}
	public void setHigh(BigDecimal high) 
	{
		this.high = high;
	}

	public BigDecimal getHigh() 
	{
		return high;
	}
	public void setVolumn(BigDecimal volumn) 
	{
		this.volumn = volumn;
	}

	public BigDecimal getVolumn() 
	{
		return volumn;
	}
	public void setLineType(Integer lineType) 
	{
		this.lineType = lineType;
	}

	public Integer getLineType() 
	{
		return lineType;
	}
	public void setStatsTime(Date statsTime) 
	{
		this.statsTime = statsTime;
	}

	public Date getStatsTime() 
	{
		return statsTime;
	}
	public void setDelFlag(Integer delFlag) 
	{
		this.delFlag = delFlag;
	}

	public Integer getDelFlag() 
	{
		return delFlag;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("open", getOpen())
            .append("close", getClose())
            .append("low", getLow())
            .append("high", getHigh())
            .append("volumn", getVolumn())
            .append("lineType", getLineType())
            .append("statsTime", getStatsTime())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
